package com.guoyw.rabbitmq.springbootrabbitmq.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 工作模式 多个消费者
 * @Author: guoyw
 * @CreateDate: 2021/3/21 5:55 下午
 * @Version: 1.0
 */

@Configuration
public class WorkConfig {

  //声明队列
  @Bean
  public Queue workQ1() {
    return new Queue("work_sb_mq_q");
  }
}
